define(['angular', 'app.directives','services/vs/vs_service','directives/common/laydate'], function (angular, directives) {
    'use strict';

    directives.directive("longTime", ['$q','$location','$stateParams','$uibModal','vsService', function ($q,$location,$stateParams,$uibModal,vsService) {
        return {
            restrict: 'E',
            scope: {},
            replace: true,
            templateUrl: function () {
                return "/app/partial/vs/lt.html";
            },
            link: function ($scope) {
                $scope.submit=function(){
                    alert($scope.endTime);
                    if($scope.endTime!=null&&$scope.endTime!=undefined){
                        vsService.longTime($scope.endTime,function(){},function(){})
                    }
                }
                $scope.testLogin=function(){
                    vsService.testLogin("ddd",function(){},function(){})
                }
            }
        }
    }]);
    directives.directive("versionWar", ['$q','$location','$stateParams','$uibModal','vsService', function ($q,$location,$stateParams,$uibModal,vsService) {
        return {
            restrict: 'E',
            scope: {},
            replace: true,
            templateUrl: function () {
                return "/app/partial/vs/vw.html";
            },
            link: function ($scope) {
                $scope.submit=function(){
                    vsService.versionWar($scope.param,function(){},function(){})

                }
            }
        }
    }]);
});